#include <string.h>
#include <iostream>
using std::cout;
using std::endl;

class Student
{
public:
    Student(double height,const char * name,int id,double score)
    : _height(height)
    /* , _name{'a','b'} */
    , _id(id)
    , _score(score)
    {
        strcpy(_name,name);
    }

    void print(){
        cout << "id:" << _id << endl;
        cout << "height:" << _height << endl;
        cout << "name:" << _name << endl;
        cout << "score:" << _score << endl;
    }

private:
    double _height;
    char _name[20];
    int _id;
    double _score;
};


void test0(){
    cout << sizeof(Student) << endl;
    Student stu(188.5,"Jack",101,97.5);
    stu.print();
}

void test1(){
    const char * pstr = "hello";
    /* char arr3[20] = pstr; */
    char arr[20] = {'a','b'};
    char arr2[20] = "hello";
}

int main(void){
    test0();
    return 0;
}
